<!--Expose-->
<template>
   <div>
        <Expose
            ref="refDom">
        </Expose>
   </div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
const refDom = ref()
// 获取数组中的值 getValueList：(i:[number]第几个) 
// i:[number]第几个
const igetValueList = 0;
const getValueListValue = refDom.value?.getValueList(igetValueList)
console.log('[string]当前的值', getValueListValue)
// 设置数组值 setValueList：(arr:[Array<string>]数组值, val?:[string]当前数组) 
// arr:[Array<string>]数组值
const arrsetValueList = [""];
// val?:[string]当前数组
const valsetValueList = "";
const setValueListValue = refDom.value?.setValueList(arrsetValueList, valsetValueList)
console.log('[string]当前的值', setValueListValue)
// 元素 dom：() Element
const domValue = refDom.value?.dom
console.log('Element', domValue)
// 设置值 setValue：(val:[string]设置的数据 ) 
// val:[string]设置的数据
const valsetValue = "";
refDom.value?.setValue(valsetValue)
// 获取当前值 getValue：() 
refDom.value?.getValue()
</script>